import request from '@/utils/request'

// 查询报销申请列表
export function listReimburseApply(query) {
  return request({
    url: '/oa/reimburseApply/list',
    method: 'get',
    params: query
  })
}

// 查询报销申请详细
export function getReimburseApply(id) {
  return request({
    url: '/oa/reimburseApply/' + id,
    method: 'get'
  })
}

// 新增报销申请
export function addReimburseApply(data) {
  return request({
    url: '/oa/reimburseApply',
    method: 'post',
    data: data
  })
}

// 修改报销申请
export function updateReimburseApply(data) {
  return request({
    url: '/oa/reimburseApply',
    method: 'put',
    data: data
  })
}

// 删除报销申请
export function delReimburseApply(id) {
  return request({
    url: '/oa/reimburseApply/' + id,
    method: 'delete'
  })
}



//提交流程
export function submitFlow(id){
    return request({
        url: '/oa/reimburseApply/submitFlow/'+id,
        method: 'post'
    })
}

export function cancleFlow(id){
    return request({
        url: '/oa/reimburseApply/cancleFlow/'+id,
        method: 'post'
    })
}
